/**
 * 
 */
package smallChanges.statements;

import smallChanges.Tokenization.TokenSet;
import smallChanges.util.SCConstants;

/**
 * @author jspacco
 *
 */
public abstract class StatementHeader extends SingleStatement
{
    // child is a pointer back to the CompoundStatement that this
    // is a header for
    private CompoundStatement child;

    public StatementHeader(TokenSet tokenSet) {
		super(tokenSet);
	}
    
    public StatementHeader(String stmtType, TokenSet tokenSet) {
        super(stmtType, tokenSet);
    }

    /**
     * This function determines if this header statement or the
     * source code it is a header for contains the given token.
     *  
   * @param token the token to find
     * @return true if the token is found, false otherwise.
     */
    public boolean thisOrChildrenContains (SCConstants token)
    {
        return true;//return child.contains(token);
    }
    
    public void setChild(CompoundStatement child)
    {
        this.child = child;
    }
}
